import { defineStore } from 'pinia';
import { ref } from 'vue';

export default defineStore('compGlobalInfoStore', () => {
  const globalInfo = ref<any>({
    count: 1,
  });
  const name = ref('');
  const setGlobalInfo = (params: any) => {
    globalInfo.value = params;
  };

  return {
    name,
    globalInfo,
    setGlobalInfo,
  };
});
